package com.mall.bargain.vo;


import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author LiJinYang
 * @version 1.0
 * @email 283006176@qq.com
 * @date 2021/07/21 14:01
 * 用户好友砍价
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FriendsBargain {

    /**
     * 用户好友砍价ID
     */
    private Integer id;

    /**
     * 用户
     * 砍价ID
     */
    private Integer userBargainId;

    /**
     * 砍价人ID
     */
    private Integer userId;

    /**
     * 砍价金额
     */
    private BigDecimal bargainPrice;

    /**
     * 砍价开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 完成率
     */
    private BigDecimal finishRate;

    /**
     * 头像
     */
    private String url;

    /**
     * 好友名称
     */
    private String name;


}
